package com.uzai.console.config;

import org.springframework.context.annotation.Configuration;

/**
 * 解决前端请求跨域问题
 * @author liuqi
 * @date 2021-08-11 13:41
 */
@Configuration
public class CorsConfiguration {
   /*@Bean
    public WebMvcConfigurer corsConfigurer() {
        return new WebMvcConfigurerAdapter() {
            @Override
            public void addCorsMappings(CorsRegistry registry) {
                registry.addMapping("/**")
                        .allowCredentials(false)
                        .allowedMethods("POST", "GET", "PUT", "OPTIONS", "DELETE")
                        .allowedOrigins("*");
            }
        };
    }*/
}
